\documentclass[12pt]{book}
\usepackage{wrapfig} % 记得在文档的开头加载wrapfig包
\usepackage[a4paper, left=1in, right=1in, top=1in, bottom=1in]{geometry} % 默认页边距
% \usepackage[a4paper, left=1in, right=1in, top=1in, bottom=1in]{geometry}
\usepackage{listings}
\usepackage{ctex}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{array}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{xcolor}
\hypersetup{
    colorlinks=true,
    linkcolor=black
}

\let\cleardoublepage\clearpage % 禁用空白页

\title{\huge \textbf{屁屁蛋蛋故事集 / The Story Collection of Pipi Dandan}}
\author{波浪小子 / Waves Boy}
\date{\today}

% 页眉设置
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{屁屁蛋蛋故事集 / The Story Collection of Pipi Dandan}
\fancyhead[R]{\thepage}

\begin{document}

% 封面页设置
\begin{titlepage}
    \centering
    % 标题和作者信息
    {\huge \textbf{屁屁蛋蛋故事集 / The Story Collection of Pipi Dandan}}\\[1.5cm]
    % 插入封面图片
    \includegraphics[width=1\textwidth]{images/cover.jpg} % 替换为你的图片路径
    \vfill
    {\Large 波浪小子 / Waves Boy}\\[0.5cm]
    % {\today}
\end{titlepage}


% 目录
\tableofcontents % 自动生成目录

\input{story/Jack and Lucy.tex} 

\input{story/The Chocolate Family’s War and Reconciliation.tex}

\input{story/The Adventure of the Happy Puppy.tex}

\input{story/The Sun and the Moon.tex}

\input{story/The Secret of the Magical Ice Cream.tex}

\input{story/The Enchanted Melody.tex}

\input{story/The Bargain Between the Virgin and the Witch.tex}

\input{story/The Illusion of Wellness.tex}

\input{story/The Change of Leadership.tex}

\input{story/The Lamp of Greed and the Heart of Awakening.tex}

\input{story/Warm Hands in the Treehouse.tex}

\input{story/The Gleam of the Feathered Boy.tex}

\end{document}
